﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace WPSPU
{
    public partial class MainPage : PhoneApplicationPage
    {
        public MainPage()
        {
            InitializeComponent();
        }

        private void btnHello_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
        	MessageBox.Show("Hello World");
        }

        private void btnOpenGrid_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
			//index.php?a=10&b=20
			int a = 10;
			int b = 20;
			int c = 30;
			String uri_val = String.Format("/DemoGridPage.xaml?a={0}&b={1}&c={2}",a,b,c);
        	NavigationService.Navigate(new Uri(uri_val,
									UriKind.RelativeOrAbsolute));
        }
    }
}
